import java.awt.Container;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class Okno extends JFrame{
	
	private static final long serialVersionUID = 142L;

	int szerokosc=500;
	int wysokosc=480;
	Panelek panel;
	Panello zwazing;
	
	public Okno(){
		setTitle("Poker 2014");
	    setSize(szerokosc, wysokosc);
	    setDefaultCloseOperation(EXIT_ON_CLOSE);   
	    setResizable(false);
	//    setLayout(null);
	 
	  //  Panelek panel;
		//Container powloka;
	    panel = new Panelek(this);
 	    //addPanel(panel);
	    add(panel);
	}

	public void addPanel(Panello p, JPanel q ) {
		System.out.println("dodaje paanel");
		remove(panel);
		zwazing = p;
		add(p);
//		repaint();
	}
	
}

